home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Network Login Text.xpl < prev    next >
Text File  |  2003-07-24  |  2KB  |  63 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH 1"="Startup/Shutdown\Startup\Windows NT/2K/XP\31) Inside Login Window"
  5. "NAME"="Login Window: Window Text"
  6. "VERSION"="1.51"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Text"
  9. "TEXT 2"="Caption"
  10. "DESCRIPTION 1"=""Login text" will be displayed when the user is about to login, above the fields "Username" and "Password"."
  11. "DESCRIPTION 2"="You can use this setting to provide more details than the common message "Enter a login and password that is valid on this system"."
  12. "DESCRIPTION 3"=""Window Caption" will be displayed right beside the original caption of the login window."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17.  
  18. sP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\"
  19. v1="LogonPrompt"
  20. v2="Welcome"
  21. Sub Plugin_Initialize 
  22.  if RegPathExists(sp) then
  23.   s=RegReadValue(sp & v1)
  24.   SetUIElement 1,s
  25.  
  26.   s=RegReadValue(sp & v2)
  27.   SetUIElement 2,s
  28.  else
  29.   Disable
  30.  end if
  31. End Sub
  32.  
  33. Sub Plugin_CheckData(ElementIndex)
  34. End Sub
  35.  
  36. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  37.  s=GetUIElement(1)
  38.  if Len(s)>0 then
  39.     Call RegWriteValue(sp&v1,s,1)
  40.  else
  41.     s=RegReadValue(sp&v1)
  42.     if IsEmpty(s)=false then Call RegDeleteValue(sp&v1)
  43.  end if
  44.  
  45.  s=GetUIElement(2)
  46.  if Len(s)>0 then
  47.     'automatically add a space
  48.     s=" " & ltrim(s)
  49.     Call RegWriteValue(sp&v2,s,1)
  50.  else
  51.     s=RegReadValue(sp&v2)
  52.     if IsEmpty(s)=false then Call RegDeleteValue(sp&v2)
  53.  end if
  54.  
  55.  Logoff
  56. End Sub
  57.  
  58. Sub Plugin_Terminate 
  59. End Sub
  60.  
  61.  
  62.  
  63.